// 使用重载打印信息

#include <iostream>
using namespace std;

void SayGoodnight();
void SayGoodnight(char a[]);
void SayGoodnight(char a[], char b[]);

int main() {
    char dog[25] = "Jack Russell";
    char cat[25] = "Miss Kitty";

    SayGoodnight();
    SayGoodnight(dog);
    SayGoodnight(dog, cat);
}

void SayGoodnight() {
    cout << "晚安!\n";
}

void SayGoodnight(char a[]) {
    cout << "晚安, " << a << "\n";
}

void SayGoodnight(char a[], char b[]) {
    cout << "晚安, " << a << " 和 " << b << "\n";
}